<?php
/**
 * Milestones Controller
 * @package    sitrack 
 * @author     Simon Downes <simon@simondownes.co.uk>
 * @copyright  Copyright (c) 2009, Simon Downes 
 * @license    http://www.opensource.org/licenses/mit-license.php
 */

/**
 * Manages project milestones.
 *
 * @final 
 * @package    sitrack 
 * @author     Simon Downes <simon@simondownes.co.uk>
 * @copyright  Copyright (c) 2009, Simon Downes 
 * @license    http://www.opensource.org/licenses/mit-license.php
 */
class Milestones_Controller extends SPF_Controller {

   /**
    * Constructor
    * @return   object
    */
   public function __construct() {
      /* construct the parent object */
      parent::__construct(__CLASS__);
   }

   /**
    * Destructor
    * @return   void
    */
   public function __destruct() {
      parent::__destruct();
   }

   /**
    * Determines if the client is permitted to access this controller and perform the requested action.
    * Access to this controller requires a signed-in user.    
    *
    * @return  boolean   true if access is allowed, false otherwise.
    */
   public function authenticate() {
   
      return (SPF::$session->user != NULL);
      
   } // authenticate
   
   /**
    * Dashboard page.
    * 
    * @return  void.
    */
   public function index() {
      
      $this->display('index');
      
   } // index
   
} // Milestones_Controller

?>
